package abstructfactory.controller;

import abstructfactory.service.ChinaProductService;
import abstructfactory.service.USAProductService;
import abstructfactory.service.factory.AbstractFactory;

/**
 * @Author liangbaigao
 * @Date 2023/9/26 8:42
 */
public class Client5 {

    public ChinaProductService getChinaProduct(AbstractFactory abstractFactory){
        // 中国奔驰 中国阿迪鞋
        return abstractFactory.getChinaProduct();
    }

    public USAProductService getUsaProduct(AbstractFactory abstractFactory){
        // 美国宝马 美国耐克鞋
        return abstractFactory.getUSAProduct();
    }


}
